<template>
  <div class="container">
    <div class="header">
      <!-- <span>客户关系+销售管理</span> -->
    </div>
    <div class="main">
      <div class="left">
        <!-- <div class="title">WPCRM（客户关系+销售管理）</div> -->
      </div>
      <div class="right">
        <div class="login-box">
          <div class="welcome">欢迎登录</div>
          <div class="login"><component :is="active" /></div>
        </div>
      </div>
    </div>
    <div class="footer">
      {{copyright}}
    </div>
  </div>
</template>
<script type="text/javascript">
import LoginPwd from './components/loginPwd'
export default {
  name: 'LoginIndex',
  components: { LoginPwd },
  data () {
    return {
      active: 'LoginPwd',
      copyright: 'Copyright © 2019-' + new Date().getFullYear() + ' XXX. All Rights Reserved.'
    }
  }
}
</script>
<style lang="scss" scoped>
.container {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background-image: url("~@/assets/bg.jpg");
  background-repeat: no-repeat;
  .header {
    display: flex;
    height: 10%;
    padding: 23px 2.8% 0;
    font-size: 30px;
    color: white;
  }
  .main {
    height: 85%;
    display: flex;
    flex-direction: row;
    .left {
      width: 60%;
      .title {
        font-size: 18px;
        color: white;
        text-align: center;
        padding: 20px 3.8% 0;
      }
    }
    .right {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 40%;
      height: 100%;
      .login-box {
        width: 400px;
        height: 400px;
        box-shadow: 0px 0px 50px #4c4c4c;
        background-color: rgba(255, 255, 255, 0.25);
        .welcome {
          height: 40px;
          font-weight: bold;
          font-size: 20px;
          color: #fff;
          letter-spacing: 2px;
          padding: 10px 20px;
        }
        .login {
          height: 360px;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }
  }
  .footer {
    height: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    color: #000;
  }
}
</style>
